package cn.pro.entity;

import cn.pro.entity.qo.ProUserQuery;
import cn.pro.entity.vo.ProAccessVo;
import cn.pro.utils.Desc;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;


@Data
@Entity
@Builder
@NoArgsConstructor()
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@Table ( name ="pro_role" )
public class ProRole extends ProUserQuery implements Serializable{
private static final long serialVersionUID = 1L;

  @Column(name = "id" )
  @Id
  @Desc("角色id")
  private String id;

  @Column(name = "name" )
  @Desc("角色名")
  private String name;

  @Column(name = "status" )
  @Desc("该记录是否有效1：有效、0：无效")
  private Integer status;

  @Column(name = "create_time" )
  @Desc("创建时间")
  private java.util.Date createTime;

  @Column(name = "update_time" )
  @Desc("更新时间")
  private java.util.Date updateTime;


public static  void main(String[] args){System.out.println(MapperGenerator.genMapper(ProRole.class));}


}
